package com.ibeeking.found.upms.b.rest.service;

import com.ibeeking.found.upms.service.common.bo.CpRolePermissionBO;
import com.ibeeking.found.upms.service.common.param.RolePermissionParam;

import java.util.List;

/**
 * @ClassName ICsRolePermissionService
 * @Description
 * @Author ibeeking
 * @Date 2021-05-10 9:54
 **/
public interface ICpRolePermissionService {

    /**
     * 通过客服角色Id修改角色权限信息
     *
     * @param param
     * @return
     */
    Boolean modifyPermissionByRoleId(RolePermissionParam param);

    /**
     * 通过角色Id修改三方协同角色权限信息
     *
     * @param param
     * @return
     */
    Boolean modifyTpPermissionByRoleId(RolePermissionParam param);

    /**
     * 根据角色查询权限id列表
     * @param roleId
     * @return
     */
    List<CpRolePermissionBO> queryPermissionIdsByRoleId(Long roleId);

    List<CpRolePermissionBO> queryRolePermissionByRoleIds(List<Long> roleIds);
}
